package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MeowSuppliersMapper;
import com.ruoyi.system.domain.MeowSuppliers;
import com.ruoyi.system.service.IMeowSuppliersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 供应商信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class MeowSuppliersServiceImpl implements IMeowSuppliersService 
{
    @Autowired
    private MeowSuppliersMapper meowSuppliersMapper;

    /**
     * 查询供应商信息
     * 
     * @param supplierId 供应商信息主键
     * @return 供应商信息
     */
    @Override
    public MeowSuppliers selectMeowSuppliersBySupplierId(String supplierId)
    {
        return meowSuppliersMapper.selectMeowSuppliersBySupplierId(supplierId);
    }

    /**
     * 查询供应商信息列表
     * 
     * @param meowSuppliers 供应商信息
     * @return 供应商信息
     */
    @Override
    public List<MeowSuppliers> selectMeowSuppliersList(MeowSuppliers meowSuppliers)
    {
        return meowSuppliersMapper.selectMeowSuppliersList(meowSuppliers);
    }

    /**
     * 新增供应商信息
     * 
     * @param meowSuppliers 供应商信息
     * @return 结果
     */
    @Override
    public int insertMeowSuppliers(MeowSuppliers meowSuppliers)
    {
        return meowSuppliersMapper.insertMeowSuppliers(meowSuppliers);
    }

    /**
     * 修改供应商信息
     * 
     * @param meowSuppliers 供应商信息
     * @return 结果
     */
    @Override
    public int updateMeowSuppliers(MeowSuppliers meowSuppliers)
    {
        return meowSuppliersMapper.updateMeowSuppliers(meowSuppliers);
    }

    /**
     * 批量删除供应商信息
     * 
     * @param supplierIds 需要删除的供应商信息主键
     * @return 结果
     */
    @Override
    public int deleteMeowSuppliersBySupplierIds(String supplierIds)
    {
        return meowSuppliersMapper.deleteMeowSuppliersBySupplierIds(Convert.toStrArray(supplierIds));
    }

    /**
     * 删除供应商信息信息
     * 
     * @param supplierId 供应商信息主键
     * @return 结果
     */
    @Override
    public int deleteMeowSuppliersBySupplierId(String supplierId)
    {
        return meowSuppliersMapper.deleteMeowSuppliersBySupplierId(supplierId);
    }
}
